package conf

/**
* Author: joker
* TODO: test
* Date: 2022/8/16
* Time: 上午9:31
**/

var defaultConf = `{
  "system": {
    "debug": false,
    "port": 1111,
    "hash_id": "{HashIDSalt}",
    "hash_session": "{SessionSecret}",
    "app_name": "google_home_backend",
    "app_version": "v3.1"
  },
  "zap": {
    "level": "info",
    "format": "console",
    "director": "logs",
    "linkname": "latest_log",
    "encode-level": "LowercaseColorLevelEncoder",
    "stacktrace-key": "stacktrace",
    "log-in-console": true
  },
  "mysql": {
    "is_use": false,
    "user": "root",
    "password": "test123",
    "host": "mysql",
    "port": 3306,
    "db_name": "test",
    "params": "?charset=utf8mb4&parseTime=True&loc=Local",
    "table_prefix": "v1",
    "conn_max_lifetime": 10800,
    "max_open_conns": 10,
    "max_idle_conns": 10
  },
  "redis": {
    "is_use": false,
    "password": "test123",
    "host": "redis",
    "port": 6379,
    "db_name": ""
  },
  "mongo": {
    "is_use": false,
    "user": "root",
    "password": "test123",
    "host": "mongobd",
    "port": 27017,
    "db_name": "",
    "params": "?w=majority",
    "table_prefix": "v1",
    "conn_max_lifetime": 10800,
    "max_open_conns": 10,
    "max_idle_conns": 10
  }
}`
